package com.example.mine_platform.service;

import com.example.mine_platform.commom.Result;
import com.example.mine_platform.pojo.dto.MaterialDTO;
import com.example.mine_platform.pojo.dto.MaterialNewDTO;
import com.example.mine_platform.pojo.entities.Material;
import com.example.mine_platform.pojo.vo.MaterialVO;

import java.util.List;

public interface MaterialService {
    List<MaterialVO> getAllMaterials();
    Material getMaterialById(Integer id);
    Result insertMaterial(MaterialNewDTO materialNewDTO);
    Result updateMaterial(MaterialDTO materialDTO);
    Result deleteMaterial(Integer id);
}
